import * as fs from 'fs';
const cssFilePath = process.argv[2];
if (!cssFilePath) {
    throw new Error(`Usage: node scripts/css-to-string.js <input.css> [output.js]`);
}
const tsFilePath = process.argv[3] || cssFilePath.replace('.css', '.js');
const cssContent = fs
    .readFileSync(cssFilePath, { encoding: 'utf8' })
    .replace(/\/\*#\ sourceMappingURL=[^\*]+ \*\//, '');
fs.writeFileSync(tsFilePath, `export const stylesString = \`${cssContent}\`;`);
